/********************************************************************
	created:	2010/01/20
	created:	20:1:2010   16:12
	filename: 	qyColor3.h
	author:		Xiong Jiayu
	copyright:  
	purpose:	
*********************************************************************/
#pragma once

#ifndef __QYCOLOR3_H__
#define __QYCOLOR3_H__

/*
===========================================
struct qyColor3
===========================================
*/
struct qyColor3
{
	float	r, g, b;
	
	qyColor3();
	qyColor3( const float r, const float g, const float b );
	qyColor( const qyColor3 &rhs );

	void			Set( const float r, const float g, const float b );
	void			Zero();

	void			Normalize( void );
	void			NormalizeScale( float scale );

	float			operator[]( const int index ) const;
	float &			operator[]( const int index );
	qyColor			operator-() const;
	qyColor			operator=( const qyColor3 &rhs ) const;
};


#endif
